﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Model;
using Newtonsoft.Json.Linq;
using BLL;
using DAL;
using IDAL;
/***************************
 * 数据访问层
 * 权限功能
 * Author：JXL
 ***************************/ 
namespace EstateService.Controllers
{
    public class AuthoritysController : ApiController
    {
        Factory<IAuthority, AuthorityDAL> fa = new Factory<IAuthority, AuthorityDAL>();
        // GET api/authoritys
        /// <summary>
        /// 获取数据列表
        /// </summary>
        /// <returns></returns>
        [HttpPost]
        [ActionName("getlist")]
        public List<AuthorList<Authority>> getlist(int id)
        {
            return fa.bll().GetAuthorList(id);
        }

        // GET api/authoritys/5
        public string Get(int id)
        {
            return "value";
        }

        // POST api/authoritys
        public void Post([FromBody]string value)
        {
        }

        // PUT api/authoritys/5
        public void Put(int id, [FromBody]string value)
        {
        }

        // DELETE api/authoritys/5
        public void Delete(int id)
        {
        }
    }
}
